<?php   
require 'ViewModel.php';
class Controller{
	protected $viewmodel;

	function __construct (){
		$c = isset($_GET['c'])?$_GET['c']:'Index';
		$m = isset($_GET['m'])?$_GET['m']:'login';
		$this->viewmodel=new ViewModel('Admin/View/'.$c.'/'.$m.'.php');
	}

	public function assgin($var,$value){
		$this->viewmodel->assgin($var,$value);
	}

	public function display(){ 
		$this->viewmodel->display();
	}
}
?>